package com.ruoyi.airsystem.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * PM浓度记录对象 air_pmlevels
 * @date 2025-04-18
 */
public class AirPmlevels extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 记录ID */
    private Long recordId;

    /** 设备ID */
    @Excel(name = "设备ID")
    private Long deviceId;

    /** PM2.5浓度 */
    @Excel(name = "PM2.5浓度")
    private BigDecimal pm25;

    /** PM10浓度 */
    @Excel(name = "PM10浓度")
    private BigDecimal pm10;

    /** 记录时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "记录时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date recordTime;

    public void setRecordId(Long recordId) 
    {
        this.recordId = recordId;
    }

    public Long getRecordId() 
    {
        return recordId;
    }
    public void setDeviceId(Long deviceId) 
    {
        this.deviceId = deviceId;
    }

    public Long getDeviceId() 
    {
        return deviceId;
    }
    public void setPm25(BigDecimal pm25) 
    {
        this.pm25 = pm25;
    }

    public BigDecimal getPm25() 
    {
        return pm25;
    }
    public void setPm10(BigDecimal pm10) 
    {
        this.pm10 = pm10;
    }

    public BigDecimal getPm10() 
    {
        return pm10;
    }
    public void setRecordTime(Date recordTime) 
    {
        this.recordTime = recordTime;
    }

    public Date getRecordTime() 
    {
        return recordTime;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("recordId", getRecordId())
            .append("deviceId", getDeviceId())
            .append("pm25", getPm25())
            .append("pm10", getPm10())
            .append("recordTime", getRecordTime())
            .toString();
    }
}
